<?php

Route::group(['namespace' => 'Merchants'], function () {
   


//商品添加
Route::resource('/shopadd','FormController');

//商品列表
Route::resource('/shoplist','ShoplistController');
//商品类别列表
Route::post('/shoplei/{id}','ShoplistController@lei');
//商品删除
Route::get('/shopdelete/{id}','ShoplistController@delete');
//修改商品页面
Route::get('/shopupdata/{id}','ShoplistController@updata');

Route::get('/shoplei/{id}','ShoplistController@fenLei');
//商品信息修改
Route::post('/shopdoupdata','ShoplistController@doupdata');

//商家信息表格展示
Route::resource('/news','NewslistController');

//商家信息修改
Route::resource('/newsedit','NewseditController');
//图片上传
 Route::post('/photoedit','NewseditController@photo');

Route::post('/aptitudeedit','NewseditController@aptitude');

//图片预览
Route::post('/look','NewseditController@look');
Route::post('/look2','NewseditController@look2');

//商品图片预览

Route::post('/look3','FormController@look');
//商家注册
Route::resource('/shang','ShangController');
//商家登陆
Route::post('/shangcreate','ShangController@create');
//商家退出
Route::get('/loginout','ShangController@logout');

//订单显示
Route::get('/indent/{status}/{id}','ShangController@indent'); 
//订单派送
Route::get('/status/{id}','ShangController@status'); 



});
